package com.zwj.dao.ByAppinfo;


import com.zwj.pojo.AppInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;

import java.util.List;

public interface ByAppinfoMapper {
//    List<Appinfo> selectList(@Param("querySoftwareName") String querySoftwareName,
//                             @Param("APKName") String APKName,@Param("flatformName") String flatformName,@Param("categoryLevel1Name") String categoryLevel1Name,@Param("categoryLevel2Name") String categoryLevel2Name,@Param("categoryLevel3Name") String categoryLevel3Name,@Param("statusName")String statusName,@Param("softwareSize") String softwareSize,@Param("downloads") String downloads,@Param("versionNo") String versionNo);
List<AppInfo> getAppInfoList(@Param(value = "softwareName") String querySoftwareName,
                             @Param(value = "status") Integer queryStatus,
                             @Param(value = "categoryLevel1") Integer queryCategoryLevel1,
                             @Param(value = "categoryLevel2") Integer queryCategoryLevel2,
                             @Param(value = "categoryLevel3") Integer queryCategoryLevel3,
                             @Param(value = "flatformId") Integer queryFlatformId,
                             @Param(value = "devId") Integer devId,
                             @Param(value = "from") Integer currentPageNo,
                             @Param(value = "pageSize") Integer pageSize);


    int getAppInfoCount(@Param(value = "softwareName") String querySoftwareName,
                        @Param(value = "status") Integer queryStatus,
                        @Param(value = "categoryLevel1") Integer queryCategoryLevel1,
                        @Param(value = "categoryLevel2") Integer queryCategoryLevel2,
                        @Param(value = "categoryLevel3") Integer queryCategoryLevel3,
                        @Param(value = "flatformId") Integer queryFlatformId,
                        @Param(value = "devId") Integer devId);

    AppInfo getAppInfo(@Param(value = "id") Integer id, @Param(value = "APKName") String APKName);

    AppInfo  getAppBySelect(@Param(value="aid") int aid, int vid);

    int updateSatus(@Param(value = "status") Integer status, @Param(value = "id") Integer id);
}
